.386
.MODEL FLAT, STDCALL

INCLUDE GetASCIIStringLength.inc

; Windows API prototypes
GetStdHandle proto :dword
WriteConsoleA proto :dword, :dword, :dword, :dword, :dword

STD_OUTPUT_HANDLE equ -11

.CODE

PrintASCIIString proc asciiData:dword
	push STD_OUTPUT_HANDLE
	call GetStdHandle
	
	; Save stdout in ecx
	mov ecx, eax
	
	push asciiData
	call GetASCIIStringLength
	
	push 0
	push 0
	push eax
	push asciiData
	push ecx
	call WriteConsoleA
	
	ret
PrintASCIIString endp

END